; Sitae's Gates
SCENE 22, fight,	SCENE, "Sitae's Gates" 0, 0
	THEME	0
	MUSIC	master.mid
	ACTOR	1,	"Sitae Guard", guards, 9, 35, 75
	ACTOR	2,	"Sitae Guard", guards, 9, 25, 90
	SEL		1
	GIVE L9999
	GIVE M9999
	IF T41, @alright
	IF T40, @passable

	1: None shall pass
	2: Come back later.
	WAIT 2
	GOTO EXIT
END

@passable
	1: None shall pass.
	2: Wait--we are to let you in..
	1: Oh, you may go then.
	WAIT 2
	GIVE T41
	GOTO LINK 9,0,0
END

@alright
	1: None shall--oh, hi.
	2: Go on through.
	WAIT 2
	GOTO LINK 9,0,0
END

;-------------------
; Mayor's Manor
;
SCENE 23, camp,	SCENE, "Mayor's Manor" 0,0
	THEME	0
	MUSIC	sitaemayor.mid
	ACTOR	1,	"Mayor", ronnie, 9, -20, 90
	POSE	9,10
	SEL		1
	GIVE L9999
	GIVE M9999
	IF T48, @itsover
	IF T47, @finished3
	IF T46, @finished
	IF T45, @morenoises
	IF T44, @letsgo
	IF T43, @hmm
	IF T42, @scat

	' You there...
	SOUND sitae1.wav
	' Do you hear noises, too?
	SOUND sitae2.wav
	ASK 20
	IF YES, @idotoo
	' Then leave me to die!
END

@eventactorclick1
	1: Do you hear noises, too?
	SOUND sitae2.wav
END

@eventactorclick2
	2: Bark!
	SOUND dog2.wav
END

@idotoo
	' You... do?
	' Then... I'll come out.
	MOVE 1,25,90
	WAIT 7
	' Wh.. who sent you?
	H: I've been sent by your brother in Manze.
	' Ahh, yes. I knew he would send a so-called hero out here to save me.
	GIVE T42
	GOTO @scat
END

@scat
	MOVE 1,25,90,1
	' There's no way for you to help me, scat!	
END

@hmm
	MOVE 1,25,90,1
	' There's no way for you to help me, scat!
	' Hmm?
	SOUND consider2.wav
	' Let me see that!
	WAIT 1.5
	N: Mayor snags the paper!
	TAKE I602
	' Let me see...
	WAIT 5
	' Hmm, so I see you are the hero from the legends!
	' Where's your proof?
	WAIT 1.735
	N: %1 shows off the two shards.
	WAIT 2
	H: Now do you believe me?
	' Im... possible!
	' You truly are a hero!
	' Alright, I'll tell you of my problem...
	' A few weeks ago, around the time Omega was reborn, I started hearing these noises every night.
	' I tried to find the place where they were coming from, and found something...
	' In the floor, there is a trap door. I will now open it.
	' Whoever... no whatever is there isn't likely to be pretty, so be on guard.
	' I'll assist you in any way possible.
	' I didn't become mayor just by talking, you know!
	' Alright, let me gather my equipment...
	MOVE 1,15,75
	WAIT 4
	MOVE 1,70,50
	WAIT 10
	MOVE 1,40,75
	WAIT 7
	MOVE 1,90,98
	WAIT 8
	MOVE 1,24,90
	WAIT 9
	FACE RIGHT
	' Alright, let's go!
	WAIT 1
	GIVE T44
	GOTO LINK 10,0,0
END

@letsgo
	MOVE 1,25,90,1
	' You ready to go back? (YES/NO)
	ASK 20
	IF YES, @letsgo2
	' Alright, I'll wait here for you!
END

@letsgo2
	' Ok, let's go!
	WAIT 0.5
	GOTO LINK 10,0,0
END

@morenoises
	MOVE 1,25,85,1
	ACTOR 2, "Ruffles", dog, 1,15,95
	1: I don't think we got them all..
	WAIT 1.7
	SOUND meow.wav
	1: See what I mean?
	1: I'll need your help to finish them off.
	1: Are you going to come with me? (YES/NO)
	ASK 99999
	IF YES, @morenoises2
	1: Ok, but come back soon. I can't get any sleep with all the racket!
	2: *wimper*
END

@morenoises2
	' Let's go, then!
	WAIT 0.5
	GOTO LINK 10,0,0
END

@eventactorclick2
	2: Bark!
END

@finished
	MOVE 1,25,85,1
	ACTOR 2, "Ruffles", dog, 1,15,95
	COMPARE #<bbm>, "1"
	IF= @finished2
	1: I'm in a dilly of a pickle, sir %1.
	H: Good mayor! What may I do to assist you?
	1: I've heard rumors of a possible black market within the town.
	1: I need for you to go and shut it down for me.
	1: As a reward, I shall give you 75 thousand gold along with whatever you find.
	1: I'm afraid that I won't be able to let my guards handle this one, bad for the city.
	1: Will you help me? (YES/NO)
	ASK 99999
	IF YES, @blackmarket
	1: I understand. This is very dangerous.
	1: Please return any time you think you can help.
END

@blackmarket
	SET bbm, 1
	1: Good to hear.
	1: Good luck!
END

@finished2
	MOVE 1,25,85,1
	ACTOR 2, "Ruffles", dog, 1,15,95
	1: I see you have yet to kill the owner...
	1: Well, get to it. No time to waste.
END

@finished3
	MOVE 1,25,85,1
	ACTOR 2, "Ruffles", dog, 1,15,95
	1: Ahh! The black market is no more!
	1: This is good news indeed. I'll put 25 thousand extra gold in your bank account so you have a total of 100 thousand!
	N: *Got 100 thousand gold deposited!*
	1: Thank you, Sir %1. If I ever need any more help, I know who to contact.
	ADD money, 100000
	GIVE T48
END

@itsover
	MOVE 1,25,85,1
	ACTOR 2, "Ruffles", dog, 1,15,95
	1: Good to see you, Sir %1.
	2: Bark!
END

;----------------------
; H4x0r Haven
;
SCENE 24, manzemaze,	SCENE, "H4x0r Haven" 0,0
	THEME	0
	MUSIC	haxor.mid
	ACTOR	1,	"H4x0r", dom, 9, 25, 90
	ACTOR 	2,	"Beggar", beggar, 9,-5,70
	POSE	9,10
	SEL		1
	IF T406, @empty2
	IF T405, @hacktime
	IF T404, @hackslack
	IF T402, @empty

	' I HACK BUT NOT THAT GOOD!
	SOUND haxor1.wav
	' HEY, DO YOU WANT TO DUEL?
	' I'LL GIVE YOU AN SOJ IF YOU WIN!
	' SO? (YES/NO)
	ASK 20
	IF YES, @yesduel
	GOTO @wimp
END

@eventactorclick1
	' HEY! YOU NO TUTCH MY ROBE!
	' HANDS OFF!
END

@empty
	MOVE 1,-20,90,1
END

@empty
END

@wimp
	' %3! GET OUT HERE! (YES/NO)
	ASK 20
	IF YES, @yesduel
	GOTO @wimp
END

@yesduel
	' GOOD! I GET TO TRY OUT MY NEW HACKED SWORD AND CHARECTER!
	' OK! LET'S DUEL!
	MOVE 1,-20,90,1
	BKGND fight.jpg
	FIGHT2 504
	BKGND manzemaze.jpg
	IF WIN, @winbattle
	IF LOSE, @losebattle
END

@losebattle
	' HAHA!
	' YOU SUCK0RS!
	SOUND lose1.wav
END

@winbattle
	MUSIC	haxor.mid
	MOVE 1,25,90
	' NOOOOOOO!
	' THERE'S NO WAY YOU CAN GET MY SOJ!
	' MAYBE WE COULD TALK THIS OUT?
	' YOU SEE...
	' UMM...
	' STOP LOOKING AT ME LIKE THAT!
	' OH NO...
	' AHHHHH! RUN AWAY!
	MOVE 1,-20,90
	' TAKE CARE OF HIM!
	BKGND fight.jpg
	FIGHT2 504,504,504,504
	BKGND manzemaze.jpg
	IF WIN, @ansoj
	IF LOSE, @losebattle
END

@ansoj
	MUSIC	haxor.mid
	' AT... LEAST... I... LOOKED... COOL...
	WAIT 2
	N: After eliminating the hackers, you found an SOJ!
	GIVE I510
	GIVE T402
END

@hackslack
	MOVE 1,-20,90,1
	H: Are there any hackers here?
	H: I could use some help...
	WAIT 20
	' YOU STILL THERE?
	' FINE... I'LL COME OUT...
	MOVE 1,20,90
	WAIT 7
	' WHAT DO YOU WANT?
	H: I'm in need of your help...
	' WHY WOULD I HELP YOU? YOU KILLED MOST ALL OF THE H4X0RS HERE!
	' I'M THE ONLY ONE LEFT!
	H: Well, you see, I need you to hack someone...
	' WELL, WHEN YOU PUT IT THAT WAY...
	' HAVE ANTHING GOOD THAT'S HACKED?
	H: I don't think so...
	WAIT 1.5
	N: Hacker spots the stick!
	WAIT 0.7
	' THAT STICK! THAT'S THE BEST HACKED ITEM IN THE GAME!
	' UMM, DID I SAY THAT? UHH, THAT'S ALL I WANT FOR ONE HACKING JOB!
	' I'LL EVEN THROW IN 100 THOUSAND GOLD!
	' WADDA YA SAY?
	goto @ASK20
END

@ASK20
	ASK 20
	IF YES, @yeshack
	' NO!? PLEASE!
	GOTO @ask20
END

@yeshack
	' OK! I'LL HACK HIM FOR YOU! HERE'S YOUR GOLD!
	GIVE T405
	TAKE I407
	GIVE G100000
	GOTO @hacktime
END

@hacktime
	' LET ME GET OUT MY SPEED HACK 2000...
	WAIT 5
	' OK! NAME THE PERSON YOU WISH TO HACK!
	H: Beggar!
	' OK! SEARCHING FOR THE PERSON...
	WAIT 5
	MOVE 2,80,70,1
	' GREAT! YOU CAN NOW DO 1 OF 3 THINGS...
	' (1) CHANGE HIS NAME TO I SUCK, AND MAKE ALL HE CAN SAY IS "I SUCK!"
	' (2) TAKE ALL HIS ITEMS! NO MORE SOJ FOR HIM!
	' (3) DELETE HIM ENTIRELY!
	GOTO @hacktime2
END

@hacktime2
	' SO, WHAT'S YOUR DECISION? (1, 2, or 3)
	ASK 30
	IF Q3, @goodone
	GOTO @badone
END

@badone
	' C'MON! THAT'S NOT A GOOD ONE!
	GOTO @hacktime2
END

@goodone
	' GOOD CHOICE! OK, HERE WE GO...
	' ONE...
	' TWO...
	' THREE!!!
	SEL 2
	POSE 3
	2: NO!!!!!!!!
	MOVE 2,-20,-20,1
	1: THERE! HE'S GONE!
	' THANKS FOR THE BUISNESS!
	GIVE T406
	N: That's all for now...
	WAIT 2
	N: Next version...
	WAIT 2
	N: Maybe...
	WAIT 2
	N: Alright... that's enough...
END

;----------------------
; Zeldar's Store
;
SCENE 25, camp,	SCENE, "Zeldar's Store" 0,0
	THEME	0
	MUSIC	#nochange
	ACTOR	1,	"Zeldar", ronnie, 1, 25, 90
@normal 
1: Welcome to my shop. Please view my wares.
COMPARE #<num.hostLevel>, 94
IF> @sellequipfix
	SET lowLevel, #<num.hostLevel>
	SUB lowLevel, "5"
	SET highLevel, #<num.hostLevel>
    ADD highLevel, "5"
@sellequip2
; now sell the stuff
	OFFER2 #<lowLevel>,#<highLevel>, 12, #<lowLevel>,#<highLevel>, 10, #<lowLevel>,#<highLevel>, 11, #<lowLevel>,#<highLevel>, 14, #<lowLevel>,#<highLevel>, 15, #<lowLevel>,#<highLevel>, 20,	#<lowLevel>,#<highLevel>, 21,	#<lowLevel>,#<highLevel>, 22,	#<lowLevel>,#<highLevel>, 23
END

@sellequipfix
SET lowLevel, 90
SET highLevel, 99
GOTO @sellequip2

@eventactorclick1
	' I said persue...
	' DO IT NOW!
	H: Eep...
END

;GOTO SCENE 33!!!

;----------------------
; The Black Market
;
SCENE 32, blackmarket,	SCENE, "The Black Market" 0,0
	THEME	0
	MUSIC	#nochange
	IF T47, @empty
	ACTOR	1,	"Dealer", ronnie, 9, 20, 90
	POSE	9,10
	SEL		1
	1: You! What's the password?
@menu
	IF T603, @menu2
	MENU "I don't know.=@newb", "This is the black market.. Die, fiend!=@kill"
	GOTO @menu
	END
	@menu2
	MENU "#<space1n>=@give1", "#<space2n>=@give2", "#<space3n>=@give3"
	GOTO @menu2
	END

@newb	
	1: I see.. wait... you've been working for the mayor.
	1: I can't let you in the black market.
	1: Please, accept my apoligies.
	@newb2
	MENU "That's ok...=@thatok", "If you cannot allow me to buy things, I will kill you!=@kill"
	GOTO @newb2
END

@thatok
	H: That's ok..
	1: Now leave.
	WAIT 0.4
	GOTO EXIT
END

@kill
	1: Hmm... I'm sorry that you feel that way.
	1: Time for you to die!
	WAIT 1
	MOVE 1,-100,-100,1
	FIGHT2, 301
	IF WIN @won
	MOVE 1,20,90,1
	1: You lose! Never come back.
	WAIT 1.5
	GIVE L9999
	GIVE M9999
	GOTO EXIT
END

@won
	MOVE 1,20,90,1
	1: Uh---ugg...
	WAIT 1
	MOVE 1,-100,-100,1
	WAIT 1
	N: *Found 4 Omegian Potions!*
	N: *Found 4 Ability Tokens!*
	WAIT 1.5
	GIVE I213
	GIVE I11
	GIVE I213
	GIVE I11
	GIVE I213
	GIVE I11
	GIVE I213
	GIVE I11
	GIVE T47
	H: I should tell the mayor about this!
END

@empty
	H: The black market is no more!
END


;----------------------
; Under Sitae
;
SCENE 36, manzemaze,	SCENE, "Deep Within Sitae..." 0,0
	THEME	0
	MUSIC	#nochange
	ACTOR	1,	"Mayor", ronnie, 1, 95, 75
	ACTOR 	2,	"Ruffles", other, 5, -10, 75
	ACTOR	3,	"???", abcd,	1,-5,75
	ACTOR	4,	"Wompas Cat", other_large, 1,-15,65
	MOVE  1,85,75
	GIVE L9999
	GIVE M9999
	IF T46, @over
	IF T45, @herewego
	3: Bark! Bark!
	1: There it is! It's that noise!
	3: Grr..
	1: That's..! No, it couldn't be.
	1: Ruffles? Is that you, boy?
	MOVE 2,36,75
	WAIT 3
	2: Bark!
	1: Ruffles! What were you doing down here?
	MOVE 1, 40, 75
	WAIT 2.5
	SOUND meow.wav
	H: Uhh.. that doesn't sound too good..
	1: *pays no attention* Ruffly Tuffly..
	H: *sigh* GET UP HERE!
	1: Huh?
	WAIT 1.5
	SOUND meow.wav
	WAIT 0.7
	1: Bah! What was that?
	H: I don't know.. but it's coming this way!
	1: What the.. oh crap..
	MOVE 4,20,65
	WAIT 3
	SOUND meow.wav
	SEL 4
	POSE 2
	4: Meeeroow!
	1: Ahhh!!
	H: Ahhh!!
	2: *wimper* Eep! Eep!
	MOVE 2, 120, 50
	WAIT 4
	MOVE 1,-100,-100,1
	MOVE 4,-100,-100,1
	FIGHT -506
	MUSIC wompas.mid
	FIGHT2 208
	IF WIN, @wewon
	IF LOSE, @welost
END
@wewon
	GIVE L9999
	GIVE M9999
	1: We win!
	MOVE 2, 90, 60
	2: Arf!
	H: Hey look! A shard!
	H: Yoink!
	H: What's this? A note?
	WAIT 1
	N: So... you got another shard, eh?
	N: Don't get too confident yet! I 
	N: still possess three of the shards!
	N: There is no way for you to win!
	N:    - Omega
	WAIT 4
	H: Hmm.. I should go tell the guy in Manze about this..
	COMPARE #<mayor>, "11"
	IF< @special
	@wewon2
	GIVE T45
	GIVE I503
	1: Let's get back to Sitae!
	WAIT 2.5
	GOTO SCENE 103
END

@special
	1: Wow... you only died #<mayor> times while we fought together..
	1: I'm teaming up with you!
	1: IF you ever need me in battle, just call!
	SET mayor2, "1"
	GIVE I512
	GOTO @wewon2
END

@welost
	COMPARE #<mayor>, "0"
	IF> @welost2
	SET mayor, "0"
	@welost2
	ADD mayor, "1"
	1: We lost..
	MOVE 1,95,75,1
	MOVE 2,90,60
	MOVE 4,20,65,1
	2: *wimper*
	H: Oww!
	4: Meeeroow!
	SOUND meow.wav
	1: Time to head back, I guess..
	2: Grr.. bark! Bark!
	1: Come on, Ruffles!
	2: Bark!
	1: Oh well, we'll just come back to get him later..
	WAIT 2.5
	GOTO LINK 9,1,0
END

@herewego
	SOUND meow.wav
	WAIT 0.5
	SOUND meow.wav
	WAIT 0.5
	SOUND meow.wav
	WAIT 1.5
	1: Oh crap..
	1: This is NOT good..
	1: We can either run or finish them all off here.
	1: They'll be here any second, now..
	COUNTDOWN 6
	WAIT 6
	SOUND meow.wav
	WAIT 0.5
	SOUND meow.wav
	WAIT 0.5
	SOUND meow.wav
	WAIT 0.5
	1: HERE THEY COME! GET READY TO FIGHT!
	MOVE 1,-10,-10,1
	MUSIC wompas.mid
	COMPARE #<mayor2>, "1"
	IF= @difffight
	FIGHT 208,208,208,-508
	IF WIN, @wonspecial
	1: I knew this would happen..
	1: Let's go back..
	WAIT 1
	GOTO LINK 9,1,0
END

@wonspecial
	1: We won!
	MOVE 1,95,75,1
	1: Well, I guess that's that!
	H: Huh? What's this?
	H: A sword?
	WAIT 0.5
	N: *Got Wompas Claw!*
	GIVE I303
	H: Hmm.. Think I'll keep it.
	GIVE T46
END

@difffight
	FIGHT 208,208,208
	IF WIN, @wonspecial
	1: I knew this would happen..
	1: Let's go back..
	WAIT 1
	GOTO LINK 9,1,0
END

@over
	1: Looks like there are none left.
	1: Want to go back to Sitae? (YES/NO)
	ASK 99999
	IF YES, @over2
	1: Ok, let's look around some more!
END

@over2
	1: Ok, here we go!
	WAIT 1
	GOTO LINK 9,1,0
END



	
	
	